package com.lsd.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/book")
public class BookController {
    @GetMapping("/{id}")
    public String queryById(@PathVariable Integer id){
        return "query user";
    }
    @GetMapping()
    public String queryall(){

        return "query all";
    }
    @PostMapping
    public String addById(){

        return "add user";
    }
    @PutMapping
    public String updateBook(){

        return "update bookinfo";
    }
    @DeleteMapping
    public String deleteById(){
        return "delete by id";
    }
}
